package com.jerry.wschat.web.security;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;

/**
 * 返回给前端的用户登录对象
 * @author Jerry.Wu
 * @description:
 * @date 2018/9/21 17:25
 */
@Data
public class UserLogin implements Serializable {

    private Integer id;

    private String username;

    private String nickname;

    private String email;

    private Boolean enabled;

    Collection<? extends GrantedAuthority> authorities;

}
